﻿{include file='header.tpl'}
<div class="box"><div class="weizhi">
	<span>您的位置：</span><a href="/">{$lang.index}</a>{$catnav}
</div>
<div class="mainbox">
<div class="clear"></div>
<div class="mainboxl">
<div class="catalogs"><h4><span>商品分类</span></h4>
	<ul>
    {section name=n loop=$item_cats}
    <li><a href="{$item_cats[n].cat_url}">{$item_cats[n].name}</a></li>
    {/section}
    </ul>
</div>
</div>
<div class="mainboxr">


{if $empty_sub_cats == false}
	<div class="sub_catalogs">
    <ul>
    <div class="clear"></div>
    {section name=n loop=$sub_item_cats}
    <!--<li><a href="list.php?catid={$sub_item_cats[n].cid}">{$sub_item_cats[n].name}</a></li>-->
    <li><a href="{$sub_item_cats[n].cat_url}">{$sub_item_cats[n].name}</a></li>
    {/section}
    <div class="clear"></div>
	</ul>
    </div>
{/if}




<div class="choose">
<ul>
{section name=s loop=$sort}
    <li {if $curnav == $smarty.section.s.index}id="this_choose"{/if}>
        <!--<a href="list.php?catid={$get.catid}&sort={$smarty.section.s.index}">{$sort[s].0}</a>-->
        <a href="list-{$get.catid}-1-{$smarty.section.s.index}">{$sort[s].0}</a>
    </li>
{/section}
</ul>
</div>

<div class="listbox">
<dl>
{if $count > 0}
{section name=i loop=$items}
    <dt>
    	<p class="pic">
	  	  <!--<a href="item.php?iid={$items[i].num_iid}">-->
          <a href="{$items[i].item_url}">
	  	  <img src="{print_img img=$items[i].pic_url tp='_b'}" border="0" /></a></p>
	  <p class="name"><a href="{$items[i].item_url}">{$items[i].title}</a></p>
	  <p class="price"><span>售价<b>{$items[i].price}</b>元</span></p>
	 </dt>
{/section}
</dl>
{else}
<div>
<form name="theForm" id="theForm" action="itemsearch.php" method="get" style="margin-bottom:20px;">
<p>这个分类里没有商品，，您可以试着搜索一下</p>
商品搜索:<input type="text" name="q" size="50" value="{$kw}" />
<button type="submit" name="s" value="so" style="border:1px solid #f60; background:#F60; padding:3px 4px; width:80px;">搜商品</button>
</form>
</div>
{/if}
</div>

<div id="pages">
{$pagination}
</div>


</div>
<div class="clear"></div>
</div>
{include file='footer.tpl'}